package net.asgarli.awwa.wingui;

import java.awt.EventQueue;
import java.awt.SystemColor;

import javax.swing.JFrame;
import javax.swing.JMenu;
import javax.swing.JMenuBar;
import javax.swing.JMenuItem;

public class MainWindow {

	private JFrame frmAutomaticWirelessWeb;

	/**
	 * Launch the application.
	 */
	public static void main(String[] args) {
		EventQueue.invokeLater(new Runnable() {
			public void run() {
				try {
					MainWindow window = new MainWindow();
					window.frmAutomaticWirelessWeb.setVisible(true);
				} catch (Exception e) {
					e.printStackTrace();
				}
			}
		});
	}

	/**
	 * Create the application.
	 */
	public MainWindow() {
		initialize();
	}

	/**
	 * Initialize the contents of the frame.
	 */
	private void initialize() {
		frmAutomaticWirelessWeb = new JFrame();
		frmAutomaticWirelessWeb.setBackground(SystemColor.window);
		frmAutomaticWirelessWeb.setTitle("Automatic Wireless Web Authenticator");
		frmAutomaticWirelessWeb.setBounds(100, 100, 450, 300);
		frmAutomaticWirelessWeb.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		
		JMenuBar menuBar = new JMenuBar();
		frmAutomaticWirelessWeb.setJMenuBar(menuBar);
		
		JMenu mnNetwork = new JMenu("Network");
		menuBar.add(mnNetwork);
		
		JMenuItem mntmConfigure = new JMenuItem("Configure");
		mnNetwork.add(mntmConfigure);
		
		JMenu mnHelp = new JMenu("Help");
		menuBar.add(mnHelp);
		
		JMenuItem mntmAbout = new JMenuItem("About");
		mntmAbout.setIcon(null);
		mnHelp.add(mntmAbout);
	}
}
